cmake_minimum_required(VERSION 3.0.2)
project(xrobot)

add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  serial
  tf
)

find_package(OpenCV REQUIRED)
message(STATUS "OpenCV VERSION: ${OpenCV_VERSION}")

catkin_package(
  CATKIN_DEPENDS
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS}
)

add_executable(detect_number src/detect_number.cpp)
target_link_libraries(detect_number 
  ${catkin_LIBRARIES}
  ${OpenCV_LIBRARIES}
)